﻿namespace Kodefu
{
    using System;
    using System.Linq;

    public class Edge<T, TWeight> : IEdge<T, TWeight>
    {
        public INode<T, TWeight> Parent { get; private set; }
        public INode<T, TWeight> Node { get; private set; }
        public TWeight Weight { get; private set; }

        public Edge(INode<T, TWeight> parent, INode<T, TWeight> node, TWeight weight)
        {
            this.Parent = parent;
            this.Node = node;
            this.Weight = weight;
        }
    }
}
